package com.bilubi.reggie.reggie.excpetion;

import com.bilubi.reggie.reggie.enums.CodeEnum;
import lombok.Getter;

@Getter
public class CategoryDeleteException extends RuntimeException {

    private final CodeEnum codeEnum;

    public CategoryDeleteException(CodeEnum codeEnum) {
        super(codeEnum.getMsg());
        this.codeEnum = codeEnum;
    }

}
